<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    This is my JSP page. <br>
  </body>
  <script type="text/javascript" src="<%=basePath%>resources/plugins/jquery/jquery-1.11.3.js"></script>
  
<script type="text/javascript">
$(function(){

	var arr = [
		"1-2",
		"3-5",
		"1111",
		"2222",
		"2-4",
		"2-4",	"3-5"
	];
	console.log($.inArray("1-2", arr));
	console.log($.inArray("1-4", arr));
	console.log($.inArray("3-5", arr));
	console.log($.inArray("3-2", arr));
});
</script>
</html>
